package com.example.vv.fragmentWork.mvp;

import com.example.vv.fragmentWork.base.BaseView;

public class MvpPresenter<V extends BaseView,M>{
    private V view;
    public M model;

    public void attach(V view){
        this.view = view;
    }
    public void detach(){
        this.view = view;
    }
    public V view() throws ViewISNullException {
        if (view==null) {
            throw new ViewISNullException();
        }
        return view;
    }
}
